﻿using System;
using System.Data;

namespace GrayParrot.Core.Data
{
    public interface IDbContext
    {
        System.Data.IDbCommand CreateCommand();
        IUnitOfWork CreateUnitOfWork(System.Data.IsolationLevel isolationLevel = IsolationLevel.ReadCommitted);
        void Dispose();
        void ErrorHandler(Exception ex);
        bool HasValidConnection { get; }
    }
}
